﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DTcms.Core.DBFactory.Migrations
{
    public partial class initLinkTable : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "dt_links",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    SiteId = table.Column<int>(type: "int", nullable: false),
                    Title = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
                    TelPhone = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: false),
                    SiteUrl = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false),
                    LogoUrl = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
                    SortId = table.Column<int>(type: "int", nullable: false),
                    IsRecom = table.Column<byte>(type: "tinyint", nullable: false),
                    Status = table.Column<byte>(type: "tinyint", nullable: false),
                    AddTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_dt_links", x => x.Id);
                });

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 1,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(8471));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 2,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(8650));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 3,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(8743));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 6,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(8829));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 10,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(8915));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 50,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(8986));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 51,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9038));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 52,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9103));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 53,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9161));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 60,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9220));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 61,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9272));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 62,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9333));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 63,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9430));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 64,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9488));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 70,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9545));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 71,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9601));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 130,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9784));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 131,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9841));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 132,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9901));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 133,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 927, DateTimeKind.Local).AddTicks(9957));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 140,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 928, DateTimeKind.Local).AddTicks(14));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 141,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 928, DateTimeKind.Local).AddTicks(66));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 142,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 928, DateTimeKind.Local).AddTicks(125));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 144,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 928, DateTimeKind.Local).AddTicks(181));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 150,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 928, DateTimeKind.Local).AddTicks(237));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 151,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 928, DateTimeKind.Local).AddTicks(289));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 152,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 928, DateTimeKind.Local).AddTicks(348));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 153,
                column: "AddTime",
                value: new DateTime(2024, 5, 30, 11, 6, 7, 928, DateTimeKind.Local).AddTicks(404));

            migrationBuilder.UpdateData(
                table: "dt_roles",
                keyColumn: "Id",
                keyValue: 1,
                column: "ConcurrencyStamp",
                value: "6103406d-ef55-42ac-b1be-ec5683756531");

            migrationBuilder.UpdateData(
                table: "dt_roles",
                keyColumn: "Id",
                keyValue: 2,
                column: "ConcurrencyStamp",
                value: "d7e59789-c8de-43a7-b403-607fec3f4cf1");

            migrationBuilder.UpdateData(
                table: "dt_roles",
                keyColumn: "Id",
                keyValue: 3,
                column: "ConcurrencyStamp",
                value: "28a92e0c-4091-437e-9cc5-83001da364e3");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "dt_links");

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 1,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(1406));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 2,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(1562));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 3,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(1643));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 6,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(1721));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 10,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(1797));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 50,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(1858));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 51,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(1906));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 52,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(1962));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 53,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2014));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 60,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2067));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 61,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2113));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 62,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2167));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 63,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2226));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 64,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2277));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 70,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2328));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 71,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2376));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 130,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2535));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 131,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2641));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 132,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2698));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 133,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2748));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 140,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2799));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 141,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2847));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 142,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2899));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 144,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2949));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 150,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(2999));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 151,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(3229));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 152,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(3297));

            migrationBuilder.UpdateData(
                table: "dt_manager_menu",
                keyColumn: "Id",
                keyValue: 153,
                column: "AddTime",
                value: new DateTime(2024, 3, 13, 11, 20, 37, 6, DateTimeKind.Local).AddTicks(3351));

            migrationBuilder.UpdateData(
                table: "dt_roles",
                keyColumn: "Id",
                keyValue: 1,
                column: "ConcurrencyStamp",
                value: "231f2f1b-1106-4c96-8c7a-b3fa692e2332");

            migrationBuilder.UpdateData(
                table: "dt_roles",
                keyColumn: "Id",
                keyValue: 2,
                column: "ConcurrencyStamp",
                value: "0b680a0f-0cae-435d-a5f6-77c60c90719a");

            migrationBuilder.UpdateData(
                table: "dt_roles",
                keyColumn: "Id",
                keyValue: 3,
                column: "ConcurrencyStamp",
                value: "8a84c3c5-c13b-41dd-8a15-576e0f10b967");
        }
    }
}
